package com.xijia.example.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

public interface SiteToolDic {
    /**
     * -
     */
    @Getter
    @AllArgsConstructor
    enum VisitState implements IEnum<String> {
        NORMAL("normal", "正常"),    // -
        ERROR("error", "异常"),    // -
        ;
        private String value;
        private String desc;
    }

    /**
     * -
     */
    @Getter
    @AllArgsConstructor
    enum IfHttps implements IEnum<String> {
        YES("yes", "已配置"),    // -
        NO("no", "未配置"),    // -
        UNKNOWN("unknown", "未知"),    // -
        ;
        private String value;
        private String desc;
    }

    /**
     * -
     */
    @Getter
    @AllArgsConstructor
    enum SiteType implements IEnum<String> {
        MANAGE("manage", "管理端"),    // -
        USER("user", "用户端"),    // -
        SOURCE("source", "cdn 源站"),    // -
        SERVER("server", "服务端"),    // -
        OTHER("other", "其他"),    // -
        ;
        private String value;
        private String desc;
    }


    /**
     * -
     */
    @Getter
    @AllArgsConstructor
    enum SiteCheckType implements IEnum<String> {
        VISIT("visit", "访问检查"),    // -
        HTTPS("https", "https 检查"),    // -
        ;
        private String value;
        private String desc;
    }
}
